package com.duck.inspection.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.io.InputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

@Data
@Component
@RefreshScope
public class CozeProperties {

    @Value("${coze.clientId:}")
    private String clientId;

    @Value("${coze.workflow.id}")
    private String workflowId;

    @Value("${coze.publicKey:}")
    private String publicKey;

    @Value("${coze.apiBase}")
    private String apiBase;

    // 新增：个人访问令牌，直接使用个人提供的访问令牌，不再使用 OAuth 流程
    @Value("${coze.personalToken}")
    private String personalToken;

}
